﻿angular.module('app')
    .controller('ReportCtrl', ['$scope', '$rootScope', '$timeout',
    function ($scope, $rootScope, $timeout) {
        jQuery("#reportcontent").html('');
        jQuery('<iframe src="report" style="width:100%;border:none" border="0" id="reportiframe"></iframe>').appendTo(jQuery("#reportcontent")).load(function () {
            $timeout(function () {
                jQuery("#reportiframe").css("height", "1900px");
                $timeout(function () {
                    $rootScope.$broadcast('hidePreloading');
                }, 500);
            }, 500);
        });
    }
]);